package net.ericaro.neojavagen.blocks ;
import net.ericaro.neojavagen.blocks.Catches;
import net.ericaro.neojavagen.blocks.Block ;

/**
* *<pre> TryCatchFinallyStatement :
    try Block Catches? finally Block
</pre>
*/
public class TryCatchFinallyStatement   {

Block block1;
Catches catches;
Block block2 ;

public TryCatchFinallyStatement( Block block1, Catches catches, Block block2 ){
	this.block1 = block1; this.catches = catches; this.block2 = block2 ;
	}public TryCatchFinallyStatement( Block block1, Block block2 ){
this.block1 = block1; this.block2 = block2 ;
}


public String toString(){
	StringBuilder stringbuilder = new StringBuilder();
	stringbuilder.append( "try" ).append(" ");
stringbuilder.append( this.block1 ).append(" ");
if (this.catches !=null ) stringbuilder.append( this.catches ).append(" ");
stringbuilder.append( "finally" ).append(" ");
stringbuilder.append( this.block2 ).append(" ") ;
	return stringbuilder.toString();
}

}
